<body onload="initialize()"> 
    <script type="text/javascript" src="/js/gmaps/frogs.js"></script>    
    <script type="text/javascript" src="/js/modal_window.js"></script>
    <link rel="stylesheet" href="/css/modal_window.css" type="text/css">
    <div id="map_canvas" style="width: 79%;min-width: 700px; float: right;" ></div> 
    <div id="test2" style="height: 100%; background: silver; width: 20%;overflow:scroll;" >       
        <center><a href="#?w=500" rel="popup1" class="poplight"><input type="button" class="button" value="<?php echo $this->translate('Add new car'); ?>" style="width: 150px"  /></a> </center>
        <div class="post">
            <div id="popup1" class="popup_block">        
                <?php echo $this->form; ?>
            </div>
        </div>
        
        <ul id="imei"> 
            <?php           
        /*  foreach ($this->imei as $val) { 
                    echo ''.$val['name'].'';
                    echo '<li><input id="imei" type="checkbox" value="'.$val['imei'].'" /></li>';
                                 
          } */              
        ?>               
            <?php

                foreach ($this->imei as $box){ ?>
                    <table border="2" width="250px">
                    <tr>
                    <td>Show</td>
                    <td width="100px" min-width="100px" max-width="100px">Name</td>
                    <td width="50px">Save </td>                   
                    </tr>
                    <tr>
                    <td><input id="<?php echo $box['imei'].'-imei'; ?>" type="checkbox" value="<?php echo $box['imei']; ?>" /></td>
                    <td><?php echo $box['name']; ?><br /><img src="/uploads/gps/car.png" /></td>
                    <td><input type="button" class="button" name="button" id="<?php echo $box['imei']; ?>" style="width: 55px;" value="Save" onclick="saveRoute(<?php echo $box['imei']; ?>);" /></td>                     
                    </tr>
                    </table>
            <?php    } ?>
            
           
    
            
            </ul>
    </div>  
</body>